//
//  SpecialDetailEntity.m
//  QQplayground
//
//  Created by zhangxy on 2018/8/7.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import "SpecialDetailEntity.h"

@implementation SpecialDetailEntity


- (instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    self = [super init];
    if (self) {
        self = [SpecialDetailEntity yy_modelWithDictionary:dictionary];
        
        _user_info = [[User alloc] initWithDictionary:dictionary[@"user_info"]];
        
        _images = [[NSMutableArray alloc] init];
        NSArray *imgs = dictionary[@"image"];
        for (NSDictionary *item in imgs) {
            [_images addObject:[[ImageEntity alloc] initWithDictionary:item]];
        }
    }
    return self;
}


+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{
             @"sd_id" : @"id",
             @"title":@"title",
             @"cat_id" : @"cat_id",
             @"drop_count":@"drop_count",
             @"like_count" : @"like_count",
             @"fav_count" : @"fav_count",
             @"add_time" : @"add_time"
             };
}


@end
